//using System;
//using System.Collections.Generic;
//using System.Text;
//using Rapier.Kodachi.Shared;
//using System.Drawing;

//namespace Rapier.Kodachi.WebSearch
//{
//    public class WebSearchCatalog : Catalog
//    {
//        public WebSearchCatalog(Plugin plugin) : base(plugin) { }

//        /*
//         * Creates a new item for each search engine that is set up
//         */
//        public override void LoadItems()
//        {
//            foreach (WebSearchEngine searchEngine in WebSearchPlugin.WebSearchSettings.Engines)
//            {
//                WebSearchItem searchItem = new WebSearchItem(this, searchEngine.Name);
//                searchItem.DefaultAction = "Search";
//                searchItem.Properties["WebSearchEngine"] = searchEngine;
//                searchItem.GetImage = delegate { return searchItem.GetSearchEngineImage(); };
//                OnItemLoaded(searchItem);
//            }

//            OnLoadComplete(EventArgs.Empty);
//        }

//        /*
//         * Checks whether the search engine is still set up
//         */
//        public override bool IsItemDeleted(Item item)
//        {
//            return !WebSearchPlugin.WebSearchSettings.Engines.Contains(item.Properties["WebSearchEngine"] as WebSearchEngine);
//        }
//    }
//}
